package com.ticket.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.ticket.entity.ForumPost;
import com.ticket.entity.ForumComment;

import java.util.List;

public interface IForumService {
    Page<ForumPost> getPostPage(Integer page, Integer size);
    void createPost(ForumPost post);
    ForumPost getPostDetail(Long postId);
    Page<ForumComment> getCommentPage(Long postId, Integer page, Integer size);
    void createComment(ForumComment comment);
    
    /**
     * 获取最近的帖子
     * @param limit 限制返回的帖子数量
     * @return 最近的帖子列表
     */
    List<ForumPost> getRecentPosts(int limit);
} 